<html>
<head><meta charset="utf-8"><title>unexpected token in input · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html">unexpected token in input</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="219096703"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219096703" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219096703">(Dec 07 2020 at 15:51)</a>:</h4>
<p>I just updated my rust analyzer, and now every file (at least in this project) gets the error <code>unexpected token in input</code> is it happening to other people?</p>



<a name="219096913"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219096913" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219096913">(Dec 07 2020 at 15:52)</a>:</h4>
<p>Can you provide more details? It's probably a combination of a bug in macro expansion and diagnostics reporting</p>



<a name="219097080"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219097080" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219097080">(Dec 07 2020 at 15:53)</a>:</h4>
<p>The project is <a href="https://github.com/pubgrub-rs/pubgrub">https://github.com/pubgrub-rs/pubgrub</a></p>



<a name="219097162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219097162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219097162">(Dec 07 2020 at 15:54)</a>:</h4>
<p><a href="/user_uploads/4715/ZP9qVEM7TQZ3NB0l0bWQDC6C/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/ZP9qVEM7TQZ3NB0l0bWQDC6C/image.png" title="image.png"><img src="/user_uploads/4715/ZP9qVEM7TQZ3NB0l0bWQDC6C/image.png"></a></div>



<a name="219097222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219097222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219097222">(Dec 07 2020 at 15:55)</a>:</h4>
<p>Win 10.</p>



<a name="219097278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219097278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219097278">(Dec 07 2020 at 15:55)</a>:</h4>
<p>VSCode with rust analizere, just updated.</p>



<a name="219097779"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219097779" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219097779">(Dec 07 2020 at 15:59)</a>:</h4>
<p>What more would be useful?</p>



<a name="219098348"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219098348" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219098348">(Dec 07 2020 at 16:02)</a>:</h4>
<p>It would be good to know which macro invocation causes this</p>



<a name="219098370"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219098370" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219098370">(Dec 07 2020 at 16:03)</a>:</h4>
<p>But I can see how that might be hard to figure out, heh</p>



<a name="219098449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219098449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219098449">(Dec 07 2020 at 16:03)</a>:</h4>
<p>I can reproduce it</p>



<a name="219098732"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219098732" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219098732">(Dec 07 2020 at 16:05)</a>:</h4>
<p>It's the <code>proptest!</code> block at the bottom</p>



<a name="219098905"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219098905" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219098905">(Dec 07 2020 at 16:07)</a>:</h4>
<p>Minimizing <a href="https://github.com/AltSysrq/proptest/blob/master/proptest/src/sugar.rs#L150-L248">https://github.com/AltSysrq/proptest/blob/master/proptest/src/sugar.rs#L150-L248</a> is left as a homework</p>



<a name="219099100"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219099100" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219099100">(Dec 07 2020 at 16:08)</a>:</h4>
<p>Should I open an issue, or have you built a more minimal example?</p>



<a name="219099464"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/unexpected%20token%20in%20input/near/219099464" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/unexpected.20token.20in.20input.html#219099464">(Dec 07 2020 at 16:11)</a>:</h4>
<p>You can probably file it like this with a mention that the <code>proptest!</code> block is causing it.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>